﻿using ProductTool.Entity;
using ProductTool.Service;
using System;

namespace ProductTool
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args.Length == 1)
            {
                switch (args[0])
                {
                    case "item":
                        new ItemService().Process();
                        break;
                    case "itemonline":
                        new ItemService().ProcessOnLine();
                        break;
                    case "imagedownload":
                        new ImageService().Process();
                        break;
                    case "importImage":
                        new ImageService().ImportImage();
                        break;
                    default:
                       break;
                }

            }
            new JDInventoryService().ProcessAsync().Wait();
           // new HeaderService().RunAsync().Wait();
            // new ItemServiceProp().Process();
            // new ImageService().Process();

            // new ImageService().ImportImage();
            //new ItemService().processToMongo();

            // new BrandService().Process();

            // new BrandService().ProcessCate();
            // 导商品 
            // new ItemService().Process();
            //上架
            //new ItemService().ProcessOnLine();

            // new CalcService().Process();
            //下载图片到oss
            //new ImageService().Process();
            //评论
           // new CommentService().Process();
      

            //补图片
            //new ImageService().ImportImage();
        }
    }
}
